<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use backend\models\system\AdminLog;

/* @var $this yii\web\View */
/* @var $model backend\models\system\search\AdminLogSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="admin-log-search">

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
        'options' => ['class' => 'form-inline'],
        'fieldConfig' => [
            'template' => '{input}',
        ],
    ]); ?>

    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-heading-box">
                <h3 class="panel-title "><i class="glyphicon glyphicon-search"></i></h3>
            </div>
        </div>
        <div class="panel-body">

            <?= $form->field($model, 'title')->textInput(['placeholder'=>'操作']) ?>
            <?=$form->field($model, 'status')->dropDownList([''=>'全部']+AdminLog::getStatus(),['class'=>'form-control'])->label('状态'); ?>

            <div class="form-group">
                <?= Html::submitButton('<i class="fa fa-search"></i>搜索', ['class' => 'btn btn-primary']); ?>
                <?= Html::a('<i class="fa fa-refresh"></i>重置',['index'],['data-pjax'=> 1,'class'=>'btn btn-default','title'=> '重置']) ?>
            </div>

        </div>
    </div>
    <?php ActiveForm::end(); ?>

</div>
